package xiang.aop;

import org.aspectj.lang.annotation.*;


@Aspect
public class MyTestAop {
	@Pointcut("execution(* aop.*.MyTest(..))")
	public void test(){

	}

	@Before("test()")
	public void beforeTest(){
		System.out.println("前置通知");
	}
	@AfterReturning("test()")
	public void AfterReturning(){
		System.out.println("后置通知");
	}
	@After("test()")
	public void after(){
		System.out.println("最终通知");
	}

}
